//
//  CustomDefine.h
//  Artist
//
//  Created by cuibaoyin on 13-4-9.
//  Copyright (c) 2013年 wooboo. All rights reserved.
//

#define IOS_VERSION                 [[[UIDevice currentDevice] systemVersion] floatValue]
#define CurrentLanguage               [[NSLocale preferredLanguages] objectAtIndex:0]
#define RGBACOLOR(r,g,b,a)         [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
#define DocumentsDirectory         [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES) lastObject]

//device screen judge
#define NavigationBar_Height 44
#define StatusBar_Height 20
#define Application_Frame                   [UIScreen mainScreen].applicationFrame
#define Application_HEIGHT                [UIScreen mainScreen].applicationFrame.size.height

#define isPad                   UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad
#define is3InchRetina     [UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO
#define is4Inch               [UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO
#define isIOS7               ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)


#ifdef DEBUG
#   define DLog(fmt, ...)       NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#   define DLog(...)
#endif

//target is real iphone
#if TARGET_OS_IPHONE
#endif

//target is simulator
#if TARGET_IPHONE_SIMULATOR
#endif

//ARC
#if __has_feature(objc_arc)
#else
#endif